package cn.com.nes.site.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;


@Data
public class AgentToMallInfo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商户名称", required = true)
    @NotEmpty(message = "商户名称不能为空")
    @Length(max = 16, message = "商户名称不能超过16个字符")
    private String name;

    @ApiModelProperty(value = "商户分类ID", required = true)
    private Integer categoryId;

    @ApiModelProperty(value = "商户类型ID", required = true)
    private Integer typeId;

    @ApiModelProperty(value = "商户姓名", required = true)
    private String realName;

    @ApiModelProperty(value = "商户手机号", required = true)
    @NotEmpty(message = "商户手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "手续费(%)", required = true)
    @Range(min = 0, max = 100, message = "手续费率范围为0-100")
    private Integer handlingFee;

    @ApiModelProperty(value = "商户关键字")
    private String keywords;

    @ApiModelProperty(value = "是否自营：0-非自营，1-自营", required = true)
    private Boolean isSelf;

    @ApiModelProperty(value = "是否推荐:0-不推荐，1-推荐", required = true)
    private Boolean isRecommend;

    @ApiModelProperty(value = "商户开关:0-关闭，1-开启", required = true)
    private Boolean isSwitch;

    @ApiModelProperty(value = "商品审核开关:0-关闭，1-开启", required = true)
    private Boolean productSwitch;

    @ApiModelProperty(value = "资质图片", required = true)
    private String qualificationPicture;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "排序", required = true)
    private Integer sort;

}
